package com.sam4cloud.auth.project.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sam4cloud.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author Sam
 * @since 2022-11-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oauth_user")
@ApiModel(value = "OauthUser对象", description = "用户信息表")
public class OauthUser extends Convert {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("部门id")
    private String deptId;

    @ApiModelProperty("角色id")
    private String roleId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("登陆名")
    private String loginName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("性别 0-男 1-女")
    private String gender;

    @ApiModelProperty("手机")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("状态 0-正常 1-禁用 ")
    private String status;

    @ApiModelProperty("删除标识 0-正常 1-删除")
    @TableLogic
    private String delFlag;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
